package jtk.project4.fleet.field;

//septian

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;

public class NewEquipmentGeneralIdentificationTabField extends GroupControl{

	public NewEquipmentGeneralIdentificationTabField(String bindID){
		setTitle("header.Identification");
		setBindID(bindID);
		addField(creategeneralTab());
	}

	
	private GroupControl creategeneralTab() {
		GroupControl form = new GroupControl();
		form.setLayout(new FormLayout())	
		.addField(new NewEquipmentGeneralIdentificationField("Identification"))
		.addField(insideTab())
		.addRow()
		.addField(new NewEquipmentGeneralStatusField("Status"))
		.addField(new NewEquipmentGeneralEmailNotifications("EmailNotifications"))
		;
		return form;
	}

	private GroupControl insideTab(){
		GroupControl form = new GroupControl();
		form.setLayout(new FormLayout())
		.addField(new NewEquipmentGeneralPmTrackingField("PM Tracking"))
		.addRow()
		.addField(new NewEquipmentAssignmentField("Assignment"));
		return form;
	}
}
